import React from 'react';
class TestDemo extends React.Component{
	constructor(){
		super()
	}
	componentWillMount(){
		console.log('son-will');
	}
	componentDidMount(){
		console.log('son-did');
	}
	render(){
		console.log('son-render');
		const {date,num} = this.props;
		return(<div>{date}<div>{num}</div></div>)
	}
	componentWillReceiveProps(nextProps){
		console.log('son-componentWillReceiveProps');
		// console.log(this.props);
  //       console.log(nextProps);
	}
	shouldComponentUpdate(nextProps,nextState){
		console.log('son-shouldComponentUpdate');
		return true;

	}
	componentWillUpdate(){
		console.log('son-componentWillUpdate');
	}
	componentDidUpdate(){
		console.log('son-componentDidUpdate');
	}
	componentWillUnmount(){

	}
}
export default TestDemo;